export const dictData = [
  { field: 'svyMethod', code: 'GeophySvyMethod-CVD', type: ['Pt6', 'L5', 'geophySvyDataTable', 'geophySvyProjectTable'] },
  { field: 'svyPointDescription', code: 'SurveyPointTypeCVD', type: ['Pt6'] },
  { field: 'age0', code: 'AgeCVD', type: ['Pt7'] },
  { field: 'reliability', code: 'ReliabilityTypeCVD', type: ['Pt7', 'sampleResultTable', 'volcanicDataTable', 'volcanicSampleResultTable'] },
  { field: 'stressRegime', code: 'StressRegimeCVD', type: ['Pt13'] },
  { field: 'touchRelation', code: 'StraTouchTypeCVD', type: ['Pt19'] },
  { field: 'photoViewingTo', code: 'CVD-16-Direction', type: ['Pt19', 'Pt20', 'Pt20', 'Pt21', 'Pt22', 'Pt24', 'Pt25', 'Pt27', 'Pt30', 'L1', 'L14', 'L21', 'L22', 'L24', 'L26', 'L27', 'L28', 'L29', 'L33', 'L34', 'L38', 'L39', 'L40', 'P11', 'P19', 'P20', 'P21', 'P23', 'P24', 'P29', 'P33', 'P34'] },
  { field: 'isReversed', code: 'TrueOrFalse', type: ['Pt19', 'Pt28', 'L26', 'L33', 'L40'] },
  { field: 'ismodifyworkmap', code: 'TrueOrFalse', type: ['Pt19', 'Pt20', 'Pt25', 'Pt27', 'Pt30'] },
  { field: 'isInmap', code: 'TrueOrFalse', type: ['Pt19', 'Pt20', 'Pt21', 'Pt22'] },
  { field: 'createDate', code: 'AgeCVD', type: ['Pt20', 'Pt25', 'Pt27', 'Pt30', 'L14', 'L21', 'L27', 'L34', 'P11', 'P19', 'P20', 'P21', 'P23', 'P24', 'P29', 'P31', 'P33', 'P34'] },
  { field: 'isSurfaceRuptureBelt', code: 'TrueOrFalse', type: ['Pt20', 'Pt25', 'Pt27', 'Pt30', 'L14', 'L21', 'L27', 'L34', 'P11'] },
  { field: 'fractureType', code: 'FracPtTypeCVD', type: ['Pt20', 'Pt25', 'Pt27', 'Pt30', 'L14', 'L21', 'L27', 'L34', 'P11', 'P19', 'P23', 'P33'] },
  { field: 'isFaultPoint', code: 'TrueOrFalse', type: ['Pt21'] },
  { field: 'isGeomorphPoint', code: 'TrueOrFalse', type: ['Pt21'] },
  { field: 'isStratigraphyPoint', code: 'TrueOrFalse', type: ['Pt21'] },
  { field: 'isModifyWorkmap', code: 'TrueOrFalse', type: ['Pt22'] },
  { field: 'targetFaultSource', code: 'FaultSourceCVD', type: ['Pt5', 'Pt7', 'Pt22', 'Pt24', 'L4', 'L48'] },
  { field: 'feature', code: 'FaultTypeCVD', type: ['Pt22', 'Pt26', 'Pt29', 'Pt31', 'L13', 'L22', 'L28', 'L39'] },
  { field: 'trenchSource', code: 'TrenchTypeCVD', type: ['Pt24'] },
  { field: 'isSingleSample', code: 'TrueOrFalse', type: ['Pt32'] },
  { field: 'symbolInfo', code: 'SampleTestedMethodCVD', type: ['Pt32', 'Pt40'] },
  { field: 'isVocanicCone', code: 'TrueOrFalse', type: ['Pt33'] },
  { field: 'isLava', code: 'TrueOrFalse', type: ['Pt33'] },
  { field: 'isCrater', code: 'TrueOrFalse', type: ['Pt33'] },
  { field: 'isInMap', code: 'TrueOrFalse', type: ['Pt25', 'Pt27', 'Pt30', 'Pt33'] },
  { field: 'overfallDirection', code: 'CVD-16-Direction', type: ['Pt34'] },
  { field: 'sampleSource', code: 'SampleSourceCVD', type: ['Pt40'] },
  { field: 'isUnitedResult', code: 'TrueOrFalse', type: ['Pt40'] },
  { field: 'sampleVariety', code: 'SampleVarietyCVD', type: ['Pt40'] },
  { field: 'ownership', code: 'AuxOwnershipCVD', type: ['Pt42', 'Pt43', 'L47'] },
  { field: 'faultType', code: 'FaultTypeCVD', type: ['Pt7', 'Pt44'] },
  { field: 'isGeophyWell', code: 'TrueOrFalse', type: ['Pt45', 'Pt46'] },
  { field: 'drillSource', code: 'DrillTypeCVD', type: ['Pt46'] },
  // 线
  { field: 'svyLineSource', code: 'GeophyLineTypeCVD', type: ['L5'] },
  { field: 'faultSource', code: 'FaultSourceCVD', type: ['L11'] },
  { field: 'strikeDirection', code: 'CVD-16-Direction', type: ['L13'] },
  { field: 'direction', code: 'CVD-16-Direction', type: ['L13'] },
  { field: 'latestActivePeriod', code: 'AgeCVD', type: ['L13'] },
  { field: 'profileType', code: 'ProfileLineTypeCVD', type: ['L15'] },
  { field: 'contactRelation', code: 'StraTouchTypeCVD', type: ['P19'] },
  { field: 'geologyBoundaryLine', code: 'StraTouchTypeCVD', type: ['L23', 'L32', 'L32'] },
  { field: 'feature', code: 'FracPtTypeCVD', type: ['L24', 'L29', 'L38'] },
  { field: 'strike', code: 'CVD-16-Direction', type: ['L22', 'L28', 'L39'] },
  { field: 'dipDir', code: 'CVD-16-Direction', type: ['L22', 'L28', 'L39'] },
  { field: 'age', code: 'AgeCVD', type: ['L16', 'L17', 'L18', 'L22', 'L28', 'L39', 'P36'] },
  { field: 'foldType', code: 'FoldTypeCVD', type: ['L26', 'L33', 'L40'] },
  { field: 'isExposed', code: 'TrueOrFalse', type: ['L26', 'L33', 'L40'] },
  // 面
  { field: 'grade', code: 'SZGradeCVD', type: ['P7'] },
  { field: 'dso', code: 'StratigraphyCVD', type: ['P12', 'P14', 'P16'] },
  { field: 'symbol', code: 'StratigraphyCVD', type: ['P13', 'P15', 'P18', 'P28', 'P30'] },
  { field: 'feature', code: 'BasinTypeCVD', type: ['P21', 'P24', 'P31'] },
  { field: 'symbol', code: 'RockTypeCVD', type: ['P22', 'P26', 'P32'] },
  { field: 'qdho', code: 'RockAgeCVD', type: ['P22', 'P26', 'P32'] },
  { field: 'tectonicLevel', code: 'TectonicLevelCVD', type: ['P25', 'P27'] },
  { field: 'coneType', code: 'VolcanicConeTypeCVD', type: ['P35'] },
  { field: 'rockType', code: 'RockTypeCVD', type: ['P36'] },
  { field: 'ownership', code: 'AuxOwnershipCVD', type: ['P46'] },
  // 属性表
  { field: 'slipFeature', code: 'FaultTypeCVD', type: ['paleoEQEvent'] },
  { field: 'sampleTestedMethod', code: 'SampleTestedMethodCVD', type: ['sampleDataTable', 'sampleProjectTable', 'sampleResultTable', 'volcanicSampleResultTable'] },
  { field: 'sampleType', code: 'SampleTypeCVD', type: ['sampleProjectTable', 'sampleResultTable', 'volcanicSampleResultTable'] },
  { field: 'resultType', code: 'GeophyResultTypeCVD', type: ['geophySvyDataTable'] },
  { field: 'svyMethod', code: 'GeochemSvyMethodCVD', type: ['Pt4', 'L3', 'geochemicalProjectTable', 'geocheSvyDataTable'] },
  { field: 'dataset', code: 'HugeFileDataSetCVD', type: ['bigDataFileTable'] },
]

export const checkDict = (name, type) => {
  return dictData.find(item => item.type.includes(type) && item.field == name)?.code
}

export const cascaderCode = ['GeophyResultTypeCVD']